package com.server.db;

public class Product
{
	private long idDB = 0;

	private String name = "";
	private String code = "";
	private int groupId = 0;
	private long priceBuy = -1;
	private long priceSell = -1;
	private String description = "";
	private String imageName = "";

	public Product()
	{
	}

	public Product(String name, String code, int groupId, long price,
			String description, String imageName)
	{
		this.name = name;
		this.code = code;
		this.groupId = groupId;
		this.description = description;
		this.imageName = imageName;
		this.setPriceBuy(price);
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public long getIdDB()
	{
		return idDB;
	}

	public void setIdDB(long idDB)
	{
		this.idDB = idDB;
	}

	public String getCode()
	{
		return code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	public String getDescription()
	{
		return description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public String getImageName()
	{
		return imageName;
	}

	public void setImageName(String imageName)
	{
		this.imageName = imageName;
	}


	public int getGroupId()
	{
		return groupId;
	}

	public void setGroupId(int groupId)
	{
		this.groupId = groupId;
	}

	public long getPriceBuy()
	{
		return priceBuy;
	}

	public void setPriceBuy(long priceBuy)
	{
		this.priceBuy = priceBuy;
	}

	public long getPriceSell()
	{
		return priceSell;
	}

	public void setPriceSell(long priceSell)
	{
		this.priceSell = priceSell;
	}
}
